package com.hudilao.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("cart")
public class Cart implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    private String name;        //菜品名称

    private Long customerId;    //客户id

    private Long itemId;        //购物中菜品或套餐的id

    private Integer type;       //1为菜品，2为套餐

    private Integer number;

    private BigDecimal amount;

    private String image;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}
